package org.glut.wechat.moments.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.glut.wechat.moments.domain.MomentsLikes;
import org.glut.wechat.moments.vo.LikeUserItemVO;

import java.util.List;

/**
 * 朋友圈点赞Mapper接口
 */
@Mapper
public interface MomentsLikesMapper extends BaseMapper<MomentsLikes> {

    /**
     * 根据朋友圈ID查询点赞列表
     * @param momentId 朋友圈ID
     * @return 点赞列表
     */
    List<LikeUserItemVO> selectByMomentId(@Param("momentId") Integer momentId);

}
